package com.hyz.service.impl;

import com.hyz.mapper.AssetMapper;
import com.hyz.pojo.Asset;
import com.hyz.service.AssetService;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.PipedReader;
import java.util.List;

/**
 * @author HGD
 * @date 2022/9/24 21:46
 */
@Service
public class AssetServiceImpl implements AssetService {
    @Autowired
    private AssetMapper assetMapper;

    @Override
    public boolean batchInsertAsset(List<Asset> list) {
        LoggerFactory.getLogger(AssetServiceImpl.class)
                .info("AssetServiceImpl的batchInsertAsset被调用");
        return assetMapper.batchInsertAsset(list);
    }
}
